@extends ("main")
@section ('title')
Place detail
@endsection
@section ('content')
<script type="text/javascript">
		$(document).ready(function() {
			getLocation(successFunction);
		});
	</script>
{{ $place->place_name}} <br />
{{ $place->place_description }} <br>
<p>Khoang cach hien tai:</p>
<p id="current"><?php if(isset($_COOKIE['Latitude'])) echo $place->getDistance($_COOKIE['Latitude'], $_COOKIE['Longitude'])*1000 . ' met' ;?></p>
<?php unset($_COOKIE['Latitude']); unset($_COOKIE['Longitude']); ?>

<div style="position: relative; height: 80px;">
    <input type="text" name="place" id="autocomplete-ajax" style="position: absolute; z-index: 2; background: transparent;"/>
    <input type="text" name="place" id="autocomplete-ajax-x" disabled="disabled" style="color: #CCC; position: absolute; background: transparent; z-index: 1;"/>
</div>
<div id="selction-ajax"></div>
@endsection



